<template>
  <div></div>
</template>

<script setup>
import { onMounted } from 'vue';
import { useRouter, useRoute } from 'vue-router';

const router = useRouter();
const route = useRoute();

onMounted(() => {
  const { path } = route;
  const redirectPath = path.replace('/redirect', '');
  router.replace(redirectPath);
});
</script>
